<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/BizAd',
    'namespace' => 'Beerus\\Modules\\BizAd\\Controllers',
    'middleware' => ['web', 'admin'],
], function (Router $router) {
    $router->get('/account/orders', 'BizAdController@orderList'); //充值订单
    $router->get('/account/exportOrder', 'BizAdController@exportOrder'); //导出账单
    $router->get('/account/showExport', 'BizAdController@exportForm'); //导出框
    $router->get('/account/export/{type}', 'BizAdController@export'); //导出账单
    $router->get('/account/recharge', 'BizAdController@recharge'); //充值
    $router->post('/account/doRecharge', 'BizAdController@doRecharge'); //充值
    $router->get('/wallet/cashout/{utype}/{uid}', 'BizAdController@cashout'); //提现
    $router->post('/wallet/doCashout', 'BizAdController@doCashout'); //提现
    $router->get('/account/balances', 'BizAdController@brandBalance'); //获取品牌余额
    $router->get('/wallet/bills/{walletId}', 'BizAdController@accountBills'); //获取账户明细
    $router->get('/wallet/bills/{walletId}/export', 'BizAdController@exportBillList'); //导出账户明细

    $router->get('/plan/list', 'BizAdController@planList');//计划列表
    $router->get('/plan/{id}', 'BizAdController@planInfo');//计划详情
    $router->post('/plan/{id}/tag', 'BizAdController@planContentTag');//计划内容打标
    $router->get('/plan/ctr/white', 'BizAdController@ctrWhite');//ctr白名单
    $router->post('/plan/ctr/white/save', 'BizAdController@saveCtrWhite');//保存ctr白名单
    $router->get('/plan/price/list', 'BizAdController@priceList');//计划价格列表
    $router->get('/plan/price/list/{id}/edit', 'BizAdController@priceInfo');//计划价格详情
    $router->get('/plan/price/list/create', 'BizAdController@priceInfo');//计划价格编辑
    $router->post('/plan/price/save', 'BizAdController@savePrice');//保存计划价格信息

    $router->get('/plan/rate/list', 'BizAdController@rateList');//真实流量控制
    $router->get('/plan/rate/list/create', 'BizAdController@rateEdit');//真实流量控制编辑/添加
    $router->get('/plan/rate/list/{id}/edit', 'BizAdController@rateEdit');//真实流量控制编辑/添加
    $router->post('/plan/rate/list/save', 'BizAdController@rateSave');//真实流量控制保存
    $router->delete('/plan/rate/list/{id}', 'BizAdController@rateDel');//真实流量控制删除配置
});